package com.manager.bean;

import java.io.Serializable;
import java.util.Date;

public class StudentAccess implements Serializable {
    private Integer id;

    private Integer studentId;

    private String reason;

    private Date getout;

    public StudentAccess(Integer studentId) {
        this.studentId = studentId;
    }

    private Date comeback;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Date getGetout() {
        return getout;
    }

    public void setGetout(Date getout) {
        this.getout = getout;
    }

    public Date getComeback() {
        return comeback;
    }

    public void setComeback(Date comeback) {
        this.comeback = comeback;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", studentId=").append(studentId);
        sb.append(", reason=").append(reason);
        sb.append(", getout=").append(getout);
        sb.append(", comeback=").append(comeback);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}